package com.twu.biblioteca.utils;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class EnterUtil {

    public static String getEnterdString() {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String enterdStr = "";
        try{
            enterdStr = br.readLine();
        }catch(Exception e){
            e.printStackTrace();
        }
        return enterdStr;
    }

    public static int getEnterdNumber() throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int menuOptionNumber = -1;
        menuOptionNumber = Integer.parseInt(br.readLine());
        return menuOptionNumber;
    }
}
